<?php
namespace PsiFramework\Classes\DAO;

import("Classes.DAO.AbstractDAO");
import("Classes.Util.Database.SqlQuery");

use \PsiFramework\Classes\DAO\AbstractDAO;
use \PsiFramework\Classes\Util\Database\SqlQuery;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The ObjectDAO class is the Data Access Object for a random Object
 *
 * @package DAO
 */
class ObjectDAO extends AbstractDAO
{

    protected static $_singleton = null;

    /**
     * Function to be called instead of the constructor.
     *
     * @return LanguageDAO instance
     */
    public static function getInstance($objectParameters)
    {

        if (self::$_singleton==null) {
            self::$_singleton = new ObjectDAO($objectParameters);
        }

        return self::$_singleton;
    }
}
